package com.hingsmy.pma.services;

import com.hingsmy.pma.dao.ProjectRepository;
import com.hingsmy.pma.dao.StudentRepository;
import com.hingsmy.pma.entities.Project;
import com.hingsmy.pma.entities.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectService {

        @Autowired
        ProjectRepository projectRepository;


            public
            List<Project> getAll(){
                return  projectRepository.findAll();
            }
public  Project save(Project project){
                return projectRepository.save(project);
}
    }


